import Layout from '@/layout'

const marketingRouter = {
  path: '/marketing',
  component: Layout,
  redirect: '/marketing/prizePoolList',
  name: 'Marketing',
  meta: {
    title: '营销管理',
    icon: '营销管理'
  },
  children: [
    {
      path: 'prizePool88Management',
      component: () => import('@/views/marketing/prizePool88/index'),
      name: 'PrizePool88Management',
      meta: { title: '8.8奖金池管理', icon: '奖金池管理' },
      children: [
        {
          path: 'prizePool88List',
          component: () => import('@/views/marketing/prizePool88/prizePool88List'),
          name: 'PrizePool88List',
          meta: { title: '8.8奖金池管理', noCache: true }
        },
        {
          path: 'prizePool88Edit/:id',
          component: () => import('@/views/marketing/prizePool88/prizePool88Edit'),
          name: 'PrizePool88Edit',
          meta: { title: '8.8奖金池编辑' },
          hidden: true
        },
        {
          path: 'prizePool88Add',
          component: () => import('@/views/marketing/prizePool88/prizePool88Add'),
          name: 'PrizePool88Add',
          meta: { title: '8.8奖金池添加' },
          hidden: true
        }
      ]
    },
    {
      path: 'prizePoolManagement',
      component: () => import('@/views/marketing/prizePool/index'),
      name: 'PrizePoolManagement',
      meta: { title: '奖金池管理', icon: '奖金池管理' },
      children: [
        {
          path: 'prizePoolList',
          component: () => import('@/views/marketing/prizePool/prizePoolList'),
          name: 'PrizePoolList',
          meta: { title: '奖金池管理', noCache: true }
        },
        {
          path: 'prizePoolEdit/:id',
          component: () => import('@/views/marketing/prizePool/prizePoolEdit'),
          name: 'PrizePoolEdit',
          meta: { title: '奖金池编辑' },
          hidden: true
        },
        {
          path: 'prizePoolAdd',
          component: () => import('@/views/marketing/prizePool/prizePoolAdd'),
          name: 'PrizePoolAdd',
          meta: { title: '奖金池添加' },
          hidden: true
        }
      ]
    },
    {
      path: 'adManagement',
      component: () => import('@/views/marketing/ad/index'),
      name: 'AdListManagement',
      meta: { title: '广告管理', icon: '广告管理' },
      children: [
        {
          path: 'adList',
          component: () => import('@/views/marketing/ad/adList'),
          name: 'AdList',
          meta: { title: '广告管理', noCache: true }
        },
        {
          path: 'adAdd',
          component: () => import('@/views/marketing/ad/adAdd'),
          name: 'AdAdd',
          meta: { title: '广告添加' },
          hidden: true
        },
        {
          path: 'adEdit/:id',
          component: () => import('@/views/marketing/ad/adEdit'),
          name: 'AdEdit',
          meta: { title: '广告编辑' },
          hidden: true
        }
      ]
    },
    {
      path: 'posterTemplate',
      hidden: true,
      component: () => import('@/views/marketing/poster/index'),
      name: 'PosterTemplate',
      meta: { title: '营销海报', icon: '营销海报' },
      children: [
        {
          path: 'posterList',
          name: 'PosterList',
          hidden: true,
          component: () => import('@/views/marketing/poster/posterList'),
          meta: { title: '营销海报', icon: '营销海报' }
        }
      ]
    },
    {
      path: 'practicalStrategy',
      name: 'PracticalStrategy',
      hidden: true,
      redirect: '/marketing/practicalStrategy/strategyList',
      component: () => import('@/views/marketing/strategy'),
      meta: { title: '实战攻略', icon: '实战攻略' },
      children: [
        {
          path: 'strategyList',
          name: 'StrategyList',
          hidden: true,
          component: () => import('@/views/marketing/strategy/strategyList'),
          meta: { title: '实战攻略', icon: '广告管理' }
        },
        {
          path: 'addstrategy',
          name: 'AddStrategy',
          hidden: true,
          component: () => import('@/views/marketing/strategy/addstrategy'),
          meta: { title: '新建图文', icon: '广告管理' }
        }
      ]
    },
    {
      path: 'distributiondata',
      hidden: true,
      name: 'DistributionData',
      meta: { title: '分销数据', icon: '分销数据' },
      component: () => import('@/views/marketing/distribution'),
      children: [
        {
          path: 'distributionlist',
          name: 'DistributionList',
          hidden: true,
          component: () => import('@/views/marketing/distribution/distributionlist'),
          meta: { title: '分销数据', icon: '分销数据' }
        }
      ]
    },
    {
      path: 'questionnaire',
      name: 'QuestionNaire',
      // hidden: true,
      // redirect: '/marketing/questionnaire/questionslist',
      meta: { title: '问卷调查', icon: '广告管理' },
      component: () => import('@/views/marketing/questions'),
      children: [
        {
          path: 'questionslist',
          name: 'QuestionsList',
          // hidden: true,
          component: () => import('@/views/marketing/questions/questionsList'),
          meta: { title: '问卷调查', icon: '广告管理' }
        },
        {
          path: 'questionsAdd',
          name: 'QuestionsAdd',
          hidden: true,
          component: () => import('@/views/marketing/questions/questionsAdd'),
          meta: { title: '创建问卷', icon: '广告管理' }
        },
        {
          path: 'questionsEdit',
          name: 'QuestionsEdit',
          hidden: true,
          component: () => import('@/views/marketing/questions/questionsEdit'),
          meta: { title: '编辑问卷', icon: '广告管理' }
        },
        {
          path: 'questionsData',
          name: 'QuestionsData',
          hidden: true,
          component: () => import('@/views/marketing/questions/questionsData'),
          meta: { title: '问卷详情', icon: '广告管理' }
        },
        {
          path: 'questionsInfo',
          name: 'QuestionsInfo',
          hidden: true,
          component: () => import('@/views/marketing/questions/questionsInfo'),
          meta: { title: '问卷信息', icon: '广告管理' }
        }
      ]
    },
    {
      path: 'activityManagement',
      component: () => import('@/views/marketing/activity/index'),
      name: 'ActivityManagement',
      meta: { title: '活动管理', icon: '广告管理' },
      children: [
        {
          path: 'activityList',
          component: () => import('@/views/marketing/activity/activityList'),
          name: 'ActivityList',
          meta: { title: '活动管理', noCache: true }
        },
        {
          path: 'activityAdd',
          component: () => import('@/views/marketing/activity/activityAdd'),
          name: 'ActivityAdd',
          meta: { title: '活动添加' },
          hidden: true
        },
        {
          path: 'activityEdit/:id',
          component: () => import('@/views/marketing/activity/activityEdit'),
          name: 'ActivityEdit',
          meta: { title: '活动编辑' },
          hidden: true
        }
      ]
    },
    {
      path: 'doubleEleven',
      component: () => import('@/views/marketing/doubleEleven'),
      name: 'DoubleEleven',
      meta: { title: '双十一报名列表', icon: '广告管理' }
    },
    {
      path: 'photosShow',
      component: () => import('@/views/marketing/photosShow'),
      name: 'PhotosShow',
      meta: { title: '双十一照片墙', icon: '广告管理' }
    }
  ]
}

export default marketingRouter
